/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Flats;
import java.util.Iterator;

/**
 *
 * @author AnhTuan
 */
public interface FlatsDAO {

    public int countAll();

    public Iterator<Flats> getList();

    public Iterator<Flats> getList(String flatId, String flatName, String buildingId, String buildingName,
            int floorFrom, int floorTo, int areaFrom, int areaTo, int page);

    public int getPageCount(String flatId, String flatName, String buildingId, String buildingName,
            int floorFrom, int floorTo, int areaFrom, int areaTo);

    public Flats getRow(int id);

    public int getCost(int id);

    public boolean checkExist(int flatId);

    public int add(Flats object);

    public int update(Flats object);

    public int delete(int id);

    public int deleteIn(String arrayIds);
}
